<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title>{if isset($pagetitle)}{$pagetitle} - {/if}{$Main->config_value('install_name')}</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<meta name="generator" content="Creative Framework Hybrid 4" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel='stylesheet' href='{$smarty.const.WEB_PATH}/public/css/reset.css' />
	<link rel='stylesheet' href='{$smarty.const.WEB_PATH}/public/css/b_style_0.css' />
	<link rel='stylesheet' href='{$smarty.const.WEB_PATH}/public/jquery/ui-lightness/jquery-ui-1.7.2.custom.css' />
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/jquery.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/jqueryui.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/cufon.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/Droid_Sans_400.font.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/dropdown.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/qtip.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/ui.js'></script>
	<script type='text/javascript' src='{$smarty.const.WEB_PATH}/public/js/backend_ui.js'></script>
	<!--[if lt IE 8]>
		<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
	<![endif]-->
</head>
<body>
	<div id='top'>
		<table width="100%"><!-- tableless didn't work in IE7. -->
			<tr>
				<td>
					<a href='{$smarty.const.WEB_PATH}/admin.php'><img src='{$smarty.const.WEB_PATH}/public/img/logo.png' alt='Logo' /></a>
				</td>
				<td>
					<div id='userinfobox'>
						{if isset($smarty.session.cf_uid)}
							{include file="$style_tpl_path_relative/userlinks.tpl"}
						{else}
							Auth Required
						{/if}
					</div>
				</td>
			</tr>
		</table>
	</div>
	<ul id="navmenu">
		{if isset($smarty.session.cf_uid)}
			{foreach from=$menuarray key=id item=i}
				<li id="nav_{$id}" class="navmenu-item{if $i.active == true} active{/if}">
					<img src='{$smarty.const.WEB_PATH}/public/img/icons/{$i.icon}' alt='{$i.title}' />
					<a href='{$smarty.const.WEB_PATH}/admin.php?app={$i.app}&amp;controller={$i.controller}{$i.extras}'>{$i.title}</a>
				</li>
			{/foreach}
		{else}
			<li id="nav_1" class="navmenu-item active">
				<img src='{$smarty.const.WEB_PATH}/public/img/icons/silk/key.png' alt='Login' />
				Login
			</li>
		{/if}
	</ul>
	<div id='container'>
		<table width="100%" id="sidebar_table">
			<tr id="sidebar_tr">
				<td width="20%" id="sidebar_td">{include file="$style_tpl_path_relative/sidebar.tpl"}</td>
				<td width="1%"></td>
				<td width="2px" class="vsep"></td>
				<td width="1%"></td>
				<td id="content_td">
					<div class='alert-msg-box'></div>
					{if isset($pagetitle)}<h1>{$pagetitle}</h1>{/if}
